package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GuestbookmubanMapper;
import com.ruoyi.system.domain.Guestbookmuban;
import com.ruoyi.system.service.IGuestbookmubanService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-23
 */
@Service
public class GuestbookmubanServiceImpl implements IGuestbookmubanService 
{
    @Autowired
    private GuestbookmubanMapper guestbookmubanMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param guestbookmubanid 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public Guestbookmuban selectGuestbookmubanById(String guestbookmubanid)
    {
        return guestbookmubanMapper.selectGuestbookmubanById(guestbookmubanid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param guestbookmuban 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Guestbookmuban> selectGuestbookmubanList(Guestbookmuban guestbookmuban)
    {
        return guestbookmubanMapper.selectGuestbookmubanList(guestbookmuban);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param guestbookmuban 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertGuestbookmuban(Guestbookmuban guestbookmuban)
    {
        return guestbookmubanMapper.insertGuestbookmuban(guestbookmuban);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param guestbookmuban 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateGuestbookmuban(Guestbookmuban guestbookmuban)
    {
        return guestbookmubanMapper.updateGuestbookmuban(guestbookmuban);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteGuestbookmubanByIds(String ids)
    {
        return guestbookmubanMapper.deleteGuestbookmubanByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param guestbookmubanid 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteGuestbookmubanById(String guestbookmubanid)
    {
        return guestbookmubanMapper.deleteGuestbookmubanById(guestbookmubanid);
    }
}
